package com.example.mybatisplusdemo.model.query;

import java.io.Serializable;

/**
 * 分页参数模型
 * @author Xu Haidong
 * @date 2018/3/29
 */
public class PageQuery implements Serializable{
    /**默认每页20条数据*/
    private Integer size = 20;
    /**默认第一页*/
    private Integer current = 1;
    /**分页字段名 多个使用逗号分隔*/
    private String orderByField;
    /**是否升序*/
    private Boolean asc;

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public String getOrderByField() {
        return orderByField;
    }

    public void setOrderByField(String orderByField) {
        this.orderByField = orderByField;
    }

    public Boolean getAsc() {
        return asc;
    }

    public void setAsc(Boolean asc) {
        this.asc = asc;
    }
}
